package com.cuhk.gulimall.search.vo;

import lombok.Data;

import java.util.List;

@Data
public class SearchParam {
    private String keyword;
    private Long catelogLevel3Id;

    // saleCount_desc / saleCount_asc
    // skuPrice_asc / skuPrice_desc
    // hotScore_asc / hotScore_desc
    // 排序条件
    private String sort;

    // 过滤条件
    // hasStock=0/1
    // skuPrice=1_500/_500/500_
    // 品牌id，可以是单个，也可以选中多个
    // 属性attrs: attr=${attr_id}_${val1:val2:...:valn}
    private Integer hasStock;
    // 用String就可以表示区间的查询
    private String skuPrice;
    private List<Long> brandIds;
    private List<String> attrs;

    // 选择第几页
    private Integer pageNum = 1;

    private String _queryString;

}
